package cn.kailangtu.myapplication.events;


import cn.kailangtu.myapplication.events.eventData.KeyboardInputType;

/**
 * 打开虚拟键盘的事件类
 */
public class OpenKeyboardEvent {


    private String initialValue; // 初始值
    private KeyboardInputType inputType; // 输入类型
    private int minLength; // 最小长度
    private int maxLength; // 最大长度
    private double minValue; // 最小值（用于数字类型）
    private double maxValue; // 最大值（用于数字类型）
    private int requestCode; // 请求码，用于区分不同的输入请求


    public OpenKeyboardEvent(KeyboardInputType inputType, int requestCode) {
        this.inputType = inputType;
        this.requestCode = requestCode;
        this.initialValue = "";
        this.minLength = 0;
        this.maxLength = Integer.MAX_VALUE;
        this.minValue = Double.MIN_VALUE;
        this.maxValue = Double.MAX_VALUE;
    }

    // Getters and Setters
    public String getInitialValue() {
        return initialValue;
    }

    public void setInitialValue(String initialValue) {
        this.initialValue = initialValue;
    }

    public KeyboardInputType getInputType() {
        return inputType;
    }

    public int getMinLength() {
        return minLength;
    }

    public void setMinLength(int minLength) {
        this.minLength = minLength;
    }

    public int getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(int maxLength) {
        this.maxLength = maxLength;
    }

    public double getMinValue() {
        return minValue;
    }

    public void setMinValue(double minValue) {
        this.minValue = minValue;
    }

    public double getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(double maxValue) {
        this.maxValue = maxValue;
    }

    public int getRequestCode() {
        return requestCode;
    }


}
